package com.mofang.ticketing.user.serve.merchant.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author LGC
 * @date 2022/5/13 17:17
 */
@Data
@ApiModel(value = "商户新增")
public class MerchantAddReqDTO implements Serializable {

    private static final long serialVersionUID = -2587750286636653258L;

    @NotBlank(message = "商户ID不能为空")
    @Size(max = 50, message = "真实名称最大50字符")
    @ApiModelProperty(value = "商户名称")
    private String merchantName;

    @NotBlank(message = "地区不能为空")
    @ApiModelProperty(value = "省市区 ‘,’ 拼接")
    private String merchantArea;

    @NotBlank(message = "地区不能为空")
    @ApiModelProperty(value = "省code")
    private String provinceCode;

    @NotBlank(message = "地区不能为空")
    @ApiModelProperty(value = "市code")
    private String cityCode;

    @NotBlank(message = "地区不能为空")
    @ApiModelProperty(value = "区code")
    private String countyCode;

    @NotBlank(message = "管理员账号不能为空")
    @Size(max = 11, message = "手机号最大11字符")
    @Pattern(regexp = "^[1][3456789][0-9]{9}$", message = "手机号格式有误")
    @ApiModelProperty(value = "管理员账号")
    private String adminAccount;

    @NotBlank(message = "管理员姓名不能为空")
    @Size(max = 50, message = "真实名称最大50字符")
    @ApiModelProperty(value = "管理员姓名")
    private String adminUsername;


}
